package com.company.product.req;

import com.company.product.entity.SupplierEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

@ApiModel("添加供应商入参")
public class SupplierInfoReq {

    @ApiModelProperty(value = "供应商编号 (修改的时候使用)")
    private String supplierId;

    @ApiModelProperty(value = "供应商品牌")
    private String supplierBrand;

    @ApiModelProperty(value = "供应商姓名")
    private String supplierName;

    @ApiModelProperty(value = "联系方式")
    private String supplierNumber;

    @ApiModelProperty(value = "性别 0 女  1 男")
    private Integer gender;

    @ApiModelProperty(value = "所在地区")
    private String district;

    @ApiModelProperty(value = "跟进记录")
    private String record;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "状态，0：联系中，1：合作中，2已解除")
    private long supplierStatus;

    public String getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(String supplierId) {
        this.supplierId = supplierId;
    }

    public String getSupplierBrand() {
        return supplierBrand;
    }

    public void setSupplierBrand(String supplierBrand) {
        this.supplierBrand = supplierBrand;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public String getSupplierNumber() {
        return supplierNumber;
    }

    public void setSupplierNumber(String supplierNumber) {
        this.supplierNumber = supplierNumber;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    public String getRecord() {
        return record;
    }

    public void setRecord(String record) {
        this.record = record;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public long getSupplierStatus() {
        return supplierStatus;
    }

    public void setSupplierStatus(long supplierStatus) {
        this.supplierStatus = supplierStatus;
    }

    public void copyTo(SupplierEntity entity) {
        entity.setSupplierBrand(this.supplierBrand);
        entity.setSupplierName(this.supplierName);
        entity.setSupplierNumber(this.supplierNumber);
        entity.setGender(this.gender);
        entity.setDistrict(this.district);
        entity.setRecord(this.record);
        entity.setRemarks(this.remarks);
        entity.setSupplierStatus(this.supplierStatus);
    }
}
